package com.mz.ozy.mvp.model;

import android.content.Context;

import com.mz.ozy.constants.Constants;
import com.mz.ozy.net.RetrofitUtils;

import java.util.HashMap;
import java.util.Map;

import io.reactivex.Observable;
import okhttp3.ResponseBody;

public class AgreementModel {

    public Observable<ResponseBody> onAgreement(Context context, String name) {
        Map<String, String> map = new HashMap<>();
        map.put("name",name);
        map.put("t", Constants.tokenId);
        return RetrofitUtils.getApiService(context).post(Constants.TransCode.TransCode10039, map);
    }
}